package com.haoshui.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haoshui.domain.ResponseResult;
import com.haoshui.domain.entity.User;

public interface UserService extends IService<User> {
    ResponseResult getUserInfo();

    ResponseResult updateUserInfo(User user);

    ResponseResult register(User user);

    Page<User> PageUserByCondition(Integer pageNum, Integer pageSize, String userName, String phonenumber, String status);

    boolean hasName(String userName);

    boolean hasNickName(String nickName);

    boolean hasPhoneNumber(String phonenumber);

    boolean hasEmail(String email);

    boolean addUser(User user);

    boolean updateUserStatus(Long userId, String status);
}
